package cn.iocoder.yudao.module.nginxui.controller.admin.eventsconfig.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - Nginx events块配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class EventsConfigRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6674")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "主配置", requiredMode = Schema.RequiredMode.REQUIRED, example = "30234")
    @ExcelProperty("主配置")
    private Long configId;

    @Schema(description = "每个工作进程的最大连接数")
    @ExcelProperty("每个工作进程的最大连接数")
    private Integer workerConnections;

    @Schema(description = "事件模型")
    @ExcelProperty("事件模型")
    private String eventModel;

    @Schema(description = "是否允许同时接受多个连接")
    @ExcelProperty("是否允许同时接受多个连接")
    private Integer multiAccept;

    @Schema(description = "是否开启")
    @ExcelProperty("是否开启")
    private Integer acceptMutex;

    @Schema(description = "锁的延迟时间")
    @ExcelProperty("锁的延迟时间")
    private String acceptMutexDelay;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("状态")
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
